home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
video
/
xonix-1.0
/
xonix-1
/
xonix
/
xgif.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-07-31
|
939b
|
48 lines
/*
* xgif.h - header file for xgif, but you probably already knew as much
*/
#define REVDATE "Rev: 2/13/89"
#define MAXEXPAND 16
/* include files */
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#ifndef MAIN
#define WHERE extern
#else
#define WHERE
#endif
#define byte unsigned char
#define CENTERX(f,x,str) ((x)-XTextWidth(f,str,strlen(str))/2)
#define CENTERY(f,y) ((y)-((f->ascent+f->descent)/2)+f->ascent)
/* X stuff */
WHERE Display *theDisp;
WHERE int theScreen, dispcells;
WHERE Colormap theCmap;
WHERE Window rootW, mainW;
WHERE GC theGC;
WHERE unsigned long fcol, bcol;
WHERE Font mfont;
WHERE XFontStruct *mfinfo;
WHERE Visual *theVisual;
WHERE XImage *theImage, *expImage;
/* global vars */
WHERE int iWIDE, iHIGH, eWIDE, eHIGH, expand, numcols, strip, nostrip;
WHERE unsigned long cols[256];
WHERE XColor defs[256];
WHERE char *cmd;